package c.e.a.b.f.b;

import c.e.a.b.e.c.l0;

/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
public final class fa extends ea {
    public l0 g;
    public final /* synthetic */ ba h;

    public fa(ba baVar, String str, int i, l0 l0Var) {
        this.h = baVar;
        super(str, i);
        this.g = l0Var;
    }

    public final int a() {
        return this.g.y();
    }

    public final boolean g() {
        return false;
    }

    public final boolean h() {
        return this.g.C();
    }

    /* JADX WARNING: Removed duplicated region for block: B:146:0x0427  */
    /* JADX WARNING: Removed duplicated region for block: B:150:0x0430  */
    /* JADX WARNING: Removed duplicated region for block: B:149:0x042f A:{RETURN} */
    /* JADX WARNING: Missing block: B:59:0x018f, code skipped:
            if (r6.booleanValue() == false) goto L_0x041c;
     */
    public final boolean i(java.lang.Long r18, java.lang.Long r19, c.e.a.b.e.c.a1 r20, long r21, c.e.a.b.f.b.l r23, boolean r24) {
        /*
        r17 = this;
        r0 = r17;
        r1 = java.lang.Boolean.TRUE;
        r2 = java.lang.Boolean.FALSE;
        r3 = c.e.a.b.e.c.h9.a();
        r4 = 1;
        r5 = 0;
        if (r3 == 0) goto L_0x0020;
    L_0x000e:
        r3 = r0.h;
        r3 = r3.a;
        r3 = r3.g;
        r6 = r0.a;
        r7 = c.e.a.b.f.b.p.c0;
        r3 = r3.u(r6, r7);
        if (r3 == 0) goto L_0x0020;
    L_0x001e:
        r3 = 1;
        goto L_0x0021;
    L_0x0020:
        r3 = 0;
    L_0x0021:
        r6 = r0.g;
        r6 = r6.H();
        if (r6 == 0) goto L_0x002e;
    L_0x0029:
        r6 = r23;
        r6 = r6.e;
        goto L_0x0030;
    L_0x002e:
        r6 = r21;
    L_0x0030:
        r8 = r0.h;
        r8 = r8.d();
        r9 = 2;
        r8 = r8.x(r9);
        r9 = "null";
        if (r8 == 0) goto L_0x0117;
    L_0x003f:
        r8 = r0.h;
        r8 = r8.d();
        r8 = r8.n;
        r10 = r0.b;
        r10 = java.lang.Integer.valueOf(r10);
        r11 = r0.g;
        r11 = r11.x();
        if (r11 == 0) goto L_0x0060;
    L_0x0055:
        r11 = r0.g;
        r11 = r11.y();
        r11 = java.lang.Integer.valueOf(r11);
        goto L_0x0061;
    L_0x0060:
        r11 = 0;
    L_0x0061:
        r12 = r0.h;
        r12 = r12.j();
        r13 = r0.g;
        r13 = r13.z();
        r12 = r12.u(r13);
        r13 = "Evaluating filter. audience, filter, event";
        r8.d(r13, r10, r11, r12);
        r8 = r0.h;
        r8 = r8.d();
        r8 = r8.n;
        r10 = r0.h;
        r10 = r10.m();
        r11 = r0.g;
        java.util.Objects.requireNonNull(r10);
        if (r11 != 0) goto L_0x008e;
    L_0x008b:
        r10 = r9;
        goto L_0x0112;
    L_0x008e:
        r12 = "\nevent_filter {\n";
        r12 = c.b.a.a.a.g(r12);
        r13 = r11.x();
        if (r13 == 0) goto L_0x00a7;
    L_0x009a:
        r13 = r11.y();
        r13 = java.lang.Integer.valueOf(r13);
        r14 = "filter_id";
        c.e.a.b.f.b.q9.L(r12, r5, r14, r13);
    L_0x00a7:
        r13 = r10.j();
        r14 = r11.z();
        r13 = r13.u(r14);
        r14 = "event_name";
        c.e.a.b.f.b.q9.L(r12, r5, r14, r13);
        r13 = r11.E();
        r14 = r11.F();
        r15 = r11.H();
        r13 = c.e.a.b.f.b.q9.A(r13, r14, r15);
        r14 = r13.isEmpty();
        if (r14 != 0) goto L_0x00d3;
    L_0x00ce:
        r14 = "filter_type";
        c.e.a.b.f.b.q9.L(r12, r5, r14, r13);
    L_0x00d3:
        r13 = r11.C();
        if (r13 == 0) goto L_0x00e2;
    L_0x00d9:
        r13 = r11.D();
        r14 = "event_count_filter";
        c.e.a.b.f.b.q9.J(r12, r4, r14, r13);
    L_0x00e2:
        r13 = r11.B();
        if (r13 <= 0) goto L_0x0106;
    L_0x00e8:
        r13 = "  filters {\n";
        r12.append(r13);
        r11 = r11.A();
        r11 = r11.iterator();
    L_0x00f5:
        r13 = r11.hasNext();
        if (r13 == 0) goto L_0x0106;
    L_0x00fb:
        r13 = r11.next();
        r13 = (c.e.a.b.e.c.m0) r13;
        r14 = 2;
        r10.I(r12, r14, r13);
        goto L_0x00f5;
    L_0x0106:
        c.e.a.b.f.b.q9.H(r12, r4);
        r10 = "}\n}\n";
        r12.append(r10);
        r10 = r12.toString();
    L_0x0112:
        r11 = "Filter definition";
        r8.b(r11, r10);
    L_0x0117:
        r8 = r0.g;
        r8 = r8.x();
        if (r8 == 0) goto L_0x0471;
    L_0x011f:
        r8 = r0.g;
        r8 = r8.y();
        r10 = 256; // 0x100 float:3.59E-43 double:1.265E-321;
        if (r8 <= r10) goto L_0x012b;
    L_0x0129:
        goto L_0x0471;
    L_0x012b:
        r8 = r0.g;
        r8 = r8.E();
        r10 = r0.g;
        r10 = r10.F();
        r11 = r0.g;
        r11 = r11.H();
        if (r8 != 0) goto L_0x0146;
    L_0x013f:
        if (r10 != 0) goto L_0x0146;
    L_0x0141:
        if (r11 == 0) goto L_0x0144;
    L_0x0143:
        goto L_0x0146;
    L_0x0144:
        r8 = 0;
        goto L_0x0147;
    L_0x0146:
        r8 = 1;
    L_0x0147:
        if (r24 == 0) goto L_0x0173;
    L_0x0149:
        if (r8 != 0) goto L_0x0173;
    L_0x014b:
        r1 = r0.h;
        r1 = r1.d();
        r1 = r1.n;
        r2 = r0.b;
        r2 = java.lang.Integer.valueOf(r2);
        r3 = r0.g;
        r3 = r3.x();
        if (r3 == 0) goto L_0x016c;
    L_0x0161:
        r3 = r0.g;
        r3 = r3.y();
        r3 = java.lang.Integer.valueOf(r3);
        goto L_0x016d;
    L_0x016c:
        r3 = 0;
    L_0x016d:
        r5 = "Event filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID";
        r1.c(r5, r2, r3);
        return r4;
    L_0x0173:
        r10 = r0.g;
        r11 = r20.F();
        r12 = r10.C();
        if (r12 == 0) goto L_0x0193;
    L_0x017f:
        r12 = r10.D();
        r6 = c.e.a.b.f.b.ea.b(r6, r12);
        if (r6 != 0) goto L_0x018b;
    L_0x0189:
        goto L_0x0419;
    L_0x018b:
        r6 = r6.booleanValue();
        if (r6 != 0) goto L_0x0193;
    L_0x0191:
        goto L_0x041c;
    L_0x0193:
        r6 = new java.util.HashSet;
        r6.<init>();
        r7 = r10.A();
        r7 = r7.iterator();
    L_0x01a0:
        r12 = r7.hasNext();
        if (r12 == 0) goto L_0x01d7;
    L_0x01a6:
        r12 = r7.next();
        r12 = (c.e.a.b.e.c.m0) r12;
        r13 = r12.C();
        r13 = r13.isEmpty();
        if (r13 == 0) goto L_0x01cf;
    L_0x01b6:
        r2 = r0.h;
        r2 = r2.d();
        r2 = r2.i;
        r6 = r0.h;
        r6 = r6.j();
        r6 = r6.u(r11);
        r7 = "null or empty param name in filter. event";
        r2.b(r7, r6);
        goto L_0x0419;
    L_0x01cf:
        r12 = r12.C();
        r6.add(r12);
        goto L_0x01a0;
    L_0x01d7:
        r7 = new b.f.a;
        r7.m5038init();
        r12 = r20.v();
        r12 = r12.iterator();
    L_0x01e4:
        r13 = r12.hasNext();
        if (r13 == 0) goto L_0x026f;
    L_0x01ea:
        r13 = r12.next();
        r13 = (c.e.a.b.e.c.c1) r13;
        r14 = r13.B();
        r14 = r6.contains(r14);
        if (r14 == 0) goto L_0x01e4;
    L_0x01fa:
        r14 = r13.I();
        if (r14 == 0) goto L_0x0218;
    L_0x0200:
        r14 = r13.B();
        r15 = r13.I();
        if (r15 == 0) goto L_0x0213;
    L_0x020a:
        r15 = r13.J();
        r13 = java.lang.Long.valueOf(r15);
        goto L_0x0214;
    L_0x0213:
        r13 = 0;
    L_0x0214:
        r7.put(r14, r13);
        goto L_0x01e4;
    L_0x0218:
        r14 = r13.M();
        if (r14 == 0) goto L_0x0236;
    L_0x021e:
        r14 = r13.B();
        r15 = r13.M();
        if (r15 == 0) goto L_0x0231;
    L_0x0228:
        r15 = r13.N();
        r13 = java.lang.Double.valueOf(r15);
        goto L_0x0232;
    L_0x0231:
        r13 = 0;
    L_0x0232:
        r7.put(r14, r13);
        goto L_0x01e4;
    L_0x0236:
        r14 = r13.F();
        if (r14 == 0) goto L_0x0248;
    L_0x023c:
        r14 = r13.B();
        r13 = r13.G();
        r7.put(r14, r13);
        goto L_0x01e4;
    L_0x0248:
        r2 = r0.h;
        r2 = r2.d();
        r2 = r2.i;
        r6 = r0.h;
        r6 = r6.j();
        r6 = r6.u(r11);
        r7 = r0.h;
        r7 = r7.j();
        r10 = r13.B();
        r7 = r7.x(r10);
        r10 = "Unknown value for param. event, param";
        r2.c(r10, r6, r7);
        goto L_0x0419;
    L_0x026f:
        r6 = r10.A();
        r6 = r6.iterator();
    L_0x0277:
        r10 = r6.hasNext();
        if (r10 == 0) goto L_0x041b;
    L_0x027d:
        r10 = r6.next();
        r10 = (c.e.a.b.e.c.m0) r10;
        r12 = r10.z();
        if (r12 == 0) goto L_0x0291;
    L_0x0289:
        r12 = r10.A();
        if (r12 == 0) goto L_0x0291;
    L_0x028f:
        r12 = 1;
        goto L_0x0292;
    L_0x0291:
        r12 = 0;
    L_0x0292:
        r13 = r10.C();
        r14 = r13.isEmpty();
        if (r14 == 0) goto L_0x02b5;
    L_0x029c:
        r2 = r0.h;
        r2 = r2.d();
        r2 = r2.i;
        r6 = r0.h;
        r6 = r6.j();
        r6 = r6.u(r11);
        r7 = "Event has empty param name. event";
        r2.b(r7, r6);
        goto L_0x0419;
    L_0x02b5:
        r14 = 0;
        r14 = r7.getOrDefault(r13, r14);
        r15 = r14 instanceof java.lang.Long;
        if (r15 == 0) goto L_0x0301;
    L_0x02be:
        r15 = r10.x();
        if (r15 != 0) goto L_0x02e7;
    L_0x02c4:
        r2 = r0.h;
        r2 = r2.d();
        r2 = r2.i;
        r6 = r0.h;
        r6 = r6.j();
        r6 = r6.u(r11);
        r7 = r0.h;
        r7 = r7.j();
        r7 = r7.x(r13);
        r10 = "No number filter for long param. event, param";
        r2.c(r10, r6, r7);
        goto L_0x0419;
    L_0x02e7:
        r14 = (java.lang.Long) r14;
        r13 = r14.longValue();
        r10 = r10.y();
        r10 = c.e.a.b.f.b.ea.b(r13, r10);
        if (r10 != 0) goto L_0x02f9;
    L_0x02f7:
        goto L_0x0419;
    L_0x02f9:
        r10 = r10.booleanValue();
        if (r10 != r12) goto L_0x0277;
    L_0x02ff:
        goto L_0x041c;
    L_0x0301:
        r15 = r14 instanceof java.lang.Double;
        if (r15 == 0) goto L_0x0353;
    L_0x0305:
        r15 = r10.x();
        if (r15 != 0) goto L_0x032e;
    L_0x030b:
        r2 = r0.h;
        r2 = r2.d();
        r2 = r2.i;
        r6 = r0.h;
        r6 = r6.j();
        r6 = r6.u(r11);
        r7 = r0.h;
        r7 = r7.j();
        r7 = r7.x(r13);
        r10 = "No number filter for double param. event, param";
        r2.c(r10, r6, r7);
        goto L_0x0419;
    L_0x032e:
        r14 = (java.lang.Double) r14;
        r13 = r14.doubleValue();
        r10 = r10.y();
        r15 = new java.math.BigDecimal;	 Catch:{ NumberFormatException -> 0x0346 }
        r15.<init>(r13);	 Catch:{ NumberFormatException -> 0x0346 }
        r13 = java.lang.Math.ulp(r13);	 Catch:{ NumberFormatException -> 0x0346 }
        r10 = c.e.a.b.f.b.ea.f(r15, r10, r13);	 Catch:{ NumberFormatException -> 0x0346 }
        goto L_0x0347;
    L_0x0346:
        r10 = 0;
    L_0x0347:
        if (r10 != 0) goto L_0x034b;
    L_0x0349:
        goto L_0x0419;
    L_0x034b:
        r10 = r10.booleanValue();
        if (r10 != r12) goto L_0x0277;
    L_0x0351:
        goto L_0x041c;
    L_0x0353:
        r15 = r14 instanceof java.lang.String;
        if (r15 == 0) goto L_0x03d4;
    L_0x0357:
        r15 = r10.v();
        if (r15 == 0) goto L_0x036e;
    L_0x035d:
        r14 = (java.lang.String) r14;
        r10 = r10.w();
        r13 = r0.h;
        r13 = r13.d();
        r10 = c.e.a.b.f.b.ea.e(r14, r10, r13);
        goto L_0x0384;
    L_0x036e:
        r15 = r10.x();
        if (r15 == 0) goto L_0x03b2;
    L_0x0374:
        r14 = (java.lang.String) r14;
        r15 = c.e.a.b.f.b.q9.P(r14);
        if (r15 == 0) goto L_0x0390;
    L_0x037c:
        r10 = r10.y();
        r10 = c.e.a.b.f.b.ea.d(r14, r10);
    L_0x0384:
        if (r10 != 0) goto L_0x0388;
    L_0x0386:
        goto L_0x0419;
    L_0x0388:
        r10 = r10.booleanValue();
        if (r10 != r12) goto L_0x0277;
    L_0x038e:
        goto L_0x041c;
    L_0x0390:
        r2 = r0.h;
        r2 = r2.d();
        r2 = r2.i;
        r6 = r0.h;
        r6 = r6.j();
        r6 = r6.u(r11);
        r7 = r0.h;
        r7 = r7.j();
        r7 = r7.x(r13);
        r10 = "Invalid param value for number filter. event, param";
        r2.c(r10, r6, r7);
        goto L_0x0419;
    L_0x03b2:
        r2 = r0.h;
        r2 = r2.d();
        r2 = r2.i;
        r6 = r0.h;
        r6 = r6.j();
        r6 = r6.u(r11);
        r7 = r0.h;
        r7 = r7.j();
        r7 = r7.x(r13);
        r10 = "No filter for String param. event, param";
        r2.c(r10, r6, r7);
        goto L_0x0419;
    L_0x03d4:
        if (r14 != 0) goto L_0x03f8;
    L_0x03d6:
        r6 = r0.h;
        r6 = r6.d();
        r6 = r6.n;
        r7 = r0.h;
        r7 = r7.j();
        r7 = r7.u(r11);
        r10 = r0.h;
        r10 = r10.j();
        r10 = r10.x(r13);
        r11 = "Missing param for filter. event, param";
        r6.c(r11, r7, r10);
        goto L_0x041c;
    L_0x03f8:
        r2 = r0.h;
        r2 = r2.d();
        r2 = r2.i;
        r6 = r0.h;
        r6 = r6.j();
        r6 = r6.u(r11);
        r7 = r0.h;
        r7 = r7.j();
        r7 = r7.x(r13);
        r10 = "Unknown param type. event, param";
        r2.c(r10, r6, r7);
    L_0x0419:
        r2 = 0;
        goto L_0x041c;
    L_0x041b:
        r2 = r1;
    L_0x041c:
        r6 = r0.h;
        r6 = r6.d();
        r6 = r6.n;
        if (r2 != 0) goto L_0x0427;
    L_0x0426:
        goto L_0x0428;
    L_0x0427:
        r9 = r2;
    L_0x0428:
        r7 = "Event filter result";
        r6.b(r7, r9);
        if (r2 != 0) goto L_0x0430;
    L_0x042f:
        return r5;
    L_0x0430:
        r0.c = r1;
        r2 = r2.booleanValue();
        if (r2 != 0) goto L_0x0439;
    L_0x0438:
        return r4;
    L_0x0439:
        r0.d = r1;
        if (r8 == 0) goto L_0x0470;
    L_0x043d:
        r1 = r20.G();
        if (r1 == 0) goto L_0x0470;
    L_0x0443:
        r1 = r20.H();
        r1 = java.lang.Long.valueOf(r1);
        r2 = r0.g;
        r2 = r2.F();
        if (r2 == 0) goto L_0x0462;
    L_0x0453:
        if (r3 == 0) goto L_0x045f;
    L_0x0455:
        r2 = r0.g;
        r2 = r2.C();
        if (r2 == 0) goto L_0x045f;
    L_0x045d:
        r1 = r18;
    L_0x045f:
        r0.f = r1;
        goto L_0x0470;
    L_0x0462:
        if (r3 == 0) goto L_0x046e;
    L_0x0464:
        r2 = r0.g;
        r2 = r2.C();
        if (r2 == 0) goto L_0x046e;
    L_0x046c:
        r1 = r19;
    L_0x046e:
        r0.e = r1;
    L_0x0470:
        return r4;
    L_0x0471:
        r1 = r0.h;
        r1 = r1.d();
        r1 = r1.i;
        r2 = r0.a;
        r2 = c.e.a.b.f.b.q3.s(r2);
        r3 = r0.g;
        r3 = r3.x();
        if (r3 == 0) goto L_0x0492;
    L_0x0487:
        r3 = r0.g;
        r3 = r3.y();
        r3 = java.lang.Integer.valueOf(r3);
        goto L_0x0493;
    L_0x0492:
        r3 = 0;
    L_0x0493:
        r3 = java.lang.String.valueOf(r3);
        r4 = "Invalid event filter ID. appId, id";
        r1.c(r4, r2, r3);
        return r5;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.fa.i(java.lang.Long, java.lang.Long, c.e.a.b.e.c.a1, long, c.e.a.b.f.b.l, boolean):boolean");
    }
}
